/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.pub.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 单表生成Entity
 * @author zmy
 * @version 2019-04-18
 */
public class PubAffect extends DataEntity<PubAffect> {
	
	private static final long serialVersionUID = 1L;
	private String title;		// 标题
	private String article;		// 文章
	private String imgurl;		// 图片地址
	private String videourl;		// 视频地址
	private String authorid;		// 发布人id
	private String authorname;		// 发布人
	private String publishtime;		// 发布时间
	private String likenum;		// 赞
	private String colnum;		// 收藏数
	private String checkflag;		// 1-未审核2-审核通过3-审核未通过
	
	public PubAffect() {
		super();
	}

	public PubAffect(String id){
		super(id);
	}

	@Length(min=0, max=50, message="标题长度必须介于 0 和 50 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=500, message="文章长度必须介于 0 和 500 之间")
	public String getArticle() {
		return article;
	}

	public void setArticle(String article) {
		this.article = article;
	}
	
	@Length(min=0, max=255, message="图片地址长度必须介于 0 和 255 之间")
	public String getImgurl() {
		return imgurl;
	}

	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}
	
	@Length(min=0, max=255, message="视频地址长度必须介于 0 和 255 之间")
	public String getVideourl() {
		return videourl;
	}

	public void setVideourl(String videourl) {
		this.videourl = videourl;
	}
	
	@Length(min=0, max=32, message="发布人id长度必须介于 0 和 32 之间")
	public String getAuthorid() {
		return authorid;
	}

	public void setAuthorid(String authorid) {
		this.authorid = authorid;
	}
	
	@Length(min=0, max=32, message="发布人长度必须介于 0 和 32 之间")
	public String getAuthorname() {
		return authorname;
	}

	public void setAuthorname(String authorname) {
		this.authorname = authorname;
	}
	
	@Length(min=0, max=20, message="发布时间长度必须介于 0 和 20 之间")
	public String getPublishtime() {
		return publishtime;
	}

	public void setPublishtime(String publishtime) {
		this.publishtime = publishtime;
	}
	
	@Length(min=0, max=5, message="赞长度必须介于 0 和 5 之间")
	public String getLikenum() {
		return likenum;
	}

	public void setLikenum(String likenum) {
		this.likenum = likenum;
	}
	
	@Length(min=0, max=5, message="收藏数长度必须介于 0 和 5 之间")
	public String getColnum() {
		return colnum;
	}

	public void setColnum(String colnum) {
		this.colnum = colnum;
	}
	
	@Length(min=0, max=2, message="1-未审核2-审核通过3-审核未通过长度必须介于 0 和 2 之间")
	public String getCheckflag() {
		return checkflag;
	}

	public void setCheckflag(String checkflag) {
		this.checkflag = checkflag;
	}
	
}